<?php

namespace Modules\Comment\Models;
use Modules\Auth\Models\User;
use Illuminate\Database\Eloquent\Model;
use Modules\Good\Models\Good;
class Comment extends Model
{
    protected $table = 'comments';
    protected $fillable = ['user_id','good_id','content','rate','reply'];
    public function user(){
        return $this->belongsTo(User::class,'user_id','id');
    }
    public function good(){
        return $this->belongsTo(Good::class,'good_id','id');
    }
}
